<template>
  <div class="use-template" v-show="show">
    <div class="container">
      <div class="title">添加交接班报告</div>
      <div class="cont">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  show: {
    type: Boolean,
    default: false,
  },
});
</script>

<style lang="scss" scoped>
.use-template {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba($color: #000000, $alpha: 0.7);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  .container {
    width: 30vw;
    min-height: 40vh;
    background: #fff;
    border-radius: 8px;
    .title {
      padding: 2vh;
      border-bottom: 2px solid #ececec;
      text-align: center;
      font-size: 1.2vw;
    }
    .cont {
      padding: 1vh 1vw;
    }
  }
}
</style>
